<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        body{
            /* height: 2000px; */
        }
    </style>
</head>
<body>
    <script>
        document.addEventListener("click",function(e){
            /* 
                clientX和cliectY：鼠标相对于浏览器窗口可视区域的坐标
             */
            // console.dir(e)
            // console.log("clientX "+e.clientX)
            // console.log("clientY "+e.clientY)

            /* 
                pageX 和 pageY：鼠标相对于document文档页面的x，y坐标
             */

            // console.log("pageX "+e.pageX)
            // console.log("pageY "+e.pageY)
            
            /* 
                screenX和screenY：鼠标相对于电脑屏幕的x，y坐标
             */
             console.log("screenX "+e.screenX)
            console.log("screenY "+e.screenY)
        })
    </script>
</body>
</html>